home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / WE-BREAK.ZIP / P4DEF_02.INC < prev    next >
Encoding:
Text File  |  1997-02-28  |  4.6 KB  |  131 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //
  4. // p4def_02.inc
  5. //
  6. // Written By: Paul T. Dawson
  7. //             ptdawson@voicenet.com
  8. //             http://www.voicenet.com/~ptdawson
  9. //
  10. // All code and techniques are PUBLIC DOMAIN - have fun with it!
  11. //
  12. //------------------------------------------------------------------->
  13. //
  14. // This file builds one of the "dummies".
  15. //
  16. //------------------------------------------------------------------->
  17. //
  18. // Declare the *textures* for everything.
  19.  
  20.         #declare P4_Eye_Texture = texture { pigment { Gray80 } }
  21.         #declare P4_Glasses_Texture = texture { pigment{Gray50} }
  22.         #declare P4_Hair_Texture = texture { pigment { Black } }
  23.         #declare P4_Hat_Texture = texture { pigment { Gray70 } }
  24.         #declare P4_Lip_Texture = texture { pigment { Gray70 } }
  25.         
  26.         #declare P4_Shirt_Texture = texture { pigment {
  27.                 checker Gray10, Gray40 scale 0.5 rotate <33,33,33> } }
  28.  
  29.         #declare P4_Shoe_Texture = texture { pigment{ Gray50 } }
  30.         #declare P4_Shorts_Texture = texture {
  31.                 pigment { Gray30 } normal { crackle 2 } }
  32.         #declare P4_Skin_Texture = texture { pigment { Gray90 } }
  33.  
  34. //------------------------------------------------------------------->
  35. //
  36. // Now choose *types* of things. You will have to read the directions
  37. // to see what numbers are legal here!
  38.  
  39.         #declare P4_Eye_Type = 1
  40.         #declare P4_Glasses_Type = 0
  41.         #declare P4_Hair_Type = 1
  42.         #declare P4_Hand_Type = 1
  43.         #declare P4_Hat_Type = 5
  44.         #declare P4_Mouth_Type = 1
  45.         #declare P4_Nose_Type = 1
  46.         #declare P4_Shirt_Type = 2
  47.         #declare P4_Shoe_Type = 1
  48.         #declare P4_Shorts_Type = 2
  49.  
  50. //------------------------------------------------------------------->
  51. //
  52. // Set the sizes of various things.
  53.  
  54.         #declare P4_Leg_Length = 34
  55.         #declare P4_Neck_Height = 3
  56.         #declare P4_Shirt_Height = 22
  57.         #declare P4_Shorts_Height = 15
  58.  
  59. //------------------------------------------------------------------->
  60. //
  61. // Choose the rotation values. Please read the directions!
  62.  
  63.         #declare P4_Hat_Rotate = < 20, 60, 0 >
  64.         #declare P4_Neck_Rotate = < -10, -30, 0 >
  65.         #declare P4_Waist_Rotate = < -20, -20, 0 >
  66.  
  67.         #declare P4_Left_Hand_Rotate = < 0, 0, 0 >
  68.         #declare P4_Right_Hand_Rotate = < 0, 0, 0 >
  69.  
  70.         #declare P4_Left_Elbow_Rotate = < 00, -40, 0 >
  71.         #declare P4_Right_Elbow_Rotate = < 00, 80, 0 >
  72.  
  73.         #declare P4_Left_Eyelid_Rotate = -40
  74.         #declare P4_Right_Eyelid_Rotate = -40
  75.  
  76.         #declare P4_Left_Knee_Rotate = < -110, 0, 0 >
  77.         #declare P4_Right_Knee_Rotate = < -10, 0, 0 >
  78.  
  79.         #declare P4_Left_Leg_Rotate = < 110, 20, -10 >
  80.         #declare P4_Right_Leg_Rotate = < 0, 0, 10 >
  81.  
  82.         #declare P4_Left_Shoulder_Rotate = < -60, -20, 20 >
  83.         #declare P4_Right_Shoulder_Rotate = < -30, -10, -70 >
  84.  
  85. //------------------------------------------------------------------->
  86. //
  87. // Create the optional "holding" object. This will go into the left
  88. // hand, and move with the hand. This is optional - just comment it
  89. // out if not needed, and set the flag to "false".
  90. //
  91. // The flag is necessary to prevent person #2 from carrying the object
  92. // that you gave to person #1. Set it to true or false.
  93.  
  94.         #declare P4_Holding_Flag = false
  95.  
  96. //------------------------------------------------------------------->
  97. //
  98. // Make another optional object - a "bracelet". This also has a flag
  99. // to set on/off. This prevents duplicate bracelets! The bracelet
  100. // should be at <0,0,0>, just like a standard torus.
  101.  
  102.         #declare P4_Bracelet_Flag = false
  103.  
  104. //------------------------------------------------------------------->
  105. //
  106. // Despite my attempts at using "realistic inches" as units, the
  107. // people always seem to end up 8 or 9 feet tall. This variable lets
  108. // you scale the person down to a normal size. Use the P4_TEST.POV
  109. // scene to see how tall your person actually is!
  110.  
  111.         #declare P4_Total_Scale = 80/100
  112.  
  113. //------------------------------------------------------------------->
  114. //
  115. // This is the height to move the person up, so his/her feet are on
  116. // the floor. Sorry, but because of bendable legs, this has to be
  117. // adjusted manually (by YOU). 8-)
  118.  
  119.         #declare P4_Y_Adjust = 32
  120.  
  121. //------------------------------------------------------------------->
  122. //
  123. // Now call "p4_main.inc" to create the object.
  124.  
  125.         #include "p4_main.inc"
  126.  
  127. //------------------------------------------------------------------->
  128. //
  129. // End of this file.
  130.  
  131.